package hy.mvpbeam.activity;

import android.view.ViewGroup;

import com.jude.beam.bijection.RequiresPresenter;
import com.jude.beam.expansion.list.BeamListActivity;
import com.jude.beam.expansion.list.ListConfig;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;

import hy.mvpbeam.holder.PictureItemHolder;
import hy.mvpbeam.model.bean.PictureBean;
import hy.mvpbeam.persenter.activitypersenter.PictureListActivityPresenter;

/**
 * Created by hy on 2016/10/26.
 */
@RequiresPresenter(PictureListActivityPresenter.class)
public class PictureListActivity extends BeamListActivity<PictureListActivityPresenter,PictureBean.TngouBean> {
    @Override
    public ListConfig getConfig() {
        return super.getConfig()
                .setRefreshAble(true)
                .setLoadmoreAble(true)
                ;
    }

    @Override
    public BaseViewHolder getViewHolder(ViewGroup parent, int viewType) {
        return new PictureItemHolder(parent);
}
}
